<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家去世确认管理')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row" id="qushiquerenlist">

            <!--登录信息-->
            <input name="userid" th:value="${session.userid}" type="hidden" id="userid">
            <input name="username" th:value="${session.username}" type="hidden" id="username">
            <input name="deptid" th:value="${session.deptid}" type="hidden" id="deptid">
            <input name="olddeptid" th:value="${session.olddeptid}" type="hidden" id="olddeptid">

            <div class="col-sm-12 select-table" style="padding-top: 10px;">

                <div class="col-sm-3">
                    <div class="ibox">
                        <div class="ibox-content" style="text-align: center">
                            <h3 class="m-b-md">待核查单位数</h3>
                            <h2 class="text-navy">
                                <i class="fa" style="font-weight: bold;">{{deptcount}}</i>
                            </h2>
                        </div>
                    </div>
                </div>

                <div class="col-sm-3">
                    <div class="ibox">
                        <div class="ibox-content" style="text-align: center">
                            <h3 class="m-b-md">待核查人员数</h3>
                            <h2 class="text-success">
                                <i class="fa" style="font-weight: bold;">{{Renyuancount}}</i>
                            </h2>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-12 search-collapse">
                <form id="formId1">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>单位名称：</label>
                                <input type="text" name="danweimingcheng" v-model="danweimingcheng"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" @click="bindQushiquerenDeptList"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" @click="reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group" style="padding-top:90px;">
                <a class="btn btn-warning" @click="showUploadXls">
                    <i class="fa fa-download"></i> 导入
                </a>
                <a class="btn btn-success" @click="">
                    <i class="fa fa-download"></i> 模板下载
                </a>
            </div>


            <div  class="col-sm-12 select-table table-striped">

                <table class="table table-hover table-primary table-striped">
                    <thead>
                    <tr>
                        <th style="text-align: center; vertical-align: middle;">序号</th>
                        <th style="text-align: center; vertical-align: middle;">单位</th>
                        <th style="text-align: center; vertical-align: middle;">负责人</th>
                        <th style="text-align: center; vertical-align: middle;">负责人手机号码</th>
                        <th style="text-align: center; vertical-align: middle;">待处理</th>
                        <th style="text-align: center; vertical-align: middle;">操作</th>

                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(qushiquerenitem,index) in qushiquerenDeptlist"  v-if="qushiquerenDeptlist.length > 0">
                        <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="qushiquerenitem.jigoumingcheng"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="qushiquerenitem.fuzeren"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="qushiquerenitem.fuzerenshoujihaoma"></td>
                        <td style="vertical-align: middle; text-align: center;" :class="qushiquerenitem.weichuli==0?'green':'red'" v-text="qushiquerenitem.weichuli"></td>
                        <td style="vertical-align: middle; text-align: center;">
                            <button class="btn-primary btn" v-if="qushiquerenitem.jigoujibie!=3" @click="XiajiDanwei(qushiquerenitem.id)">下级单位</button>
                            <button class="btn-info btn" @click="RenyuanMingdan(qushiquerenitem.id)">人员名单</button>
                            <button class="btn-warning btn" @click="">发送短信</button>
                        </td>
                    </tr>
                    <tr v-if="qushiquerenDeptlist.length == 0">
                        <td style="text-align: center; vertical-align: middle" colspan="12">查无数据</td>
                    </tr>
                    </tbody>
                </table>
            </div>


            <!-- 上传模态框（Modal） -->
            <div id="uploadModal" class="modal fade bs-example-modal-lg"
                 tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-dialog modal-md" style="width: 800px">
                    <div class="modal-content" style="width: 800px">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"
                                    aria-hidden="true">&times;</button>
                            <h3 class="modal-title" id="myDetailModalLabel"></h3>
                        </div>
                        <div class="modal-body" id ="uploadModal-body"style="width: 800px;margin:0px auto;">
                        </div>
                    </div>
                </div>
            </div>

            <!--预览-->
            <div th:replace="/system/zhuanjiaqushiqueren/qushilist::edits"></div>

        </div>
    </div>
    <th:block th:include="include :: footer" />
     <script th:src="@{/js/plupload/plupload.js?v=1.0}"></script>
     <script th:src="@{/js/plupload/plupload.full.js?v=1.0}"></script>
     <script th:src="@{/js/system/zhuanjiaqushiqueren/qushiquerenlist.js?v=1.1}"></script>

</body>
</html>

<style>
    .green{
        color: green;
    }
    .red{
        color: red;
    }
</style>